list1 = [1, 2, 3]
removed_item = list1.pop()  # 删除并返回最后一个元素，列表变为[1, 2]
print(removed_item)  # 输出: 3